package com.example.communitypro.pojo;

import java.io.Serializable;

public class UserDetails implements Serializable {
    private Integer userInformationNo;

    private Integer userNo;

    private String userNickname;

    private String userName;

    private String userQq;

    private String userGender;

    private String userSynopsis;

    private String userSchool;

    private String userPlace;

    private int userFollowNumber;

    private static final long serialVersionUID = 1L;

    public String getUserSchool() {
        return userSchool;
    }

    public void setUserSchool(String userSchool) {
        this.userSchool = userSchool;
    }

    public String getUserPlace() {
        return userPlace;
    }

    public void setUserPlace(String userPlace) {
        this.userPlace = userPlace;
    }

    public int getUserFollowNumber() {
        return userFollowNumber;
    }

    public void setUserFollowNumber(int userFollowNumber) {
        this.userFollowNumber = userFollowNumber;
    }

    public Integer getUserInformationNo() {
        return userInformationNo;
    }

    public void setUserInformationNo(Integer userInformationNo) {
        this.userInformationNo = userInformationNo;
    }

    public Integer getUserNo() {
        return userNo;
    }

    public void setUserNo(Integer userNo) {
        this.userNo = userNo;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname == null ? null : userNickname.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserQq() {
        return userQq;
    }

    public void setUserQq(String userQq) {
        this.userQq = userQq == null ? null : userQq.trim();
    }

    public String getUserGender() {
        return userGender;
    }

    public void setUserGender(String userGender) {
        this.userGender = userGender == null ? null : userGender.trim();
    }

    public String getUserSynopsis() {
        return userSynopsis;
    }

    public void setUserSynopsis(String userSynopsis) {
        this.userSynopsis = userSynopsis == null ? null : userSynopsis.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserDetails other = (UserDetails) that;
        return (this.getUserInformationNo() == null ? other.getUserInformationNo() == null : this.getUserInformationNo().equals(other.getUserInformationNo()))
                && (this.getUserNo() == null ? other.getUserNo() == null : this.getUserNo().equals(other.getUserNo()))
                && (this.getUserNickname() == null ? other.getUserNickname() == null : this.getUserNickname().equals(other.getUserNickname()))
                && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
                && (this.getUserQq() == null ? other.getUserQq() == null : this.getUserQq().equals(other.getUserQq()))
                && (this.getUserGender() == null ? other.getUserGender() == null : this.getUserGender().equals(other.getUserGender()))
                && (this.getUserSynopsis() == null ? other.getUserSynopsis() == null : this.getUserSynopsis().equals(other.getUserSynopsis()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserInformationNo() == null) ? 0 : getUserInformationNo().hashCode());
        result = prime * result + ((getUserNo() == null) ? 0 : getUserNo().hashCode());
        result = prime * result + ((getUserNickname() == null) ? 0 : getUserNickname().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getUserQq() == null) ? 0 : getUserQq().hashCode());
        result = prime * result + ((getUserGender() == null) ? 0 : getUserGender().hashCode());
        result = prime * result + ((getUserSynopsis() == null) ? 0 : getUserSynopsis().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userInformationNo=").append(userInformationNo);
        sb.append(", userNo=").append(userNo);
        sb.append(", userNickname=").append(userNickname);
        sb.append(", userName=").append(userName);
        sb.append(", userQq=").append(userQq);
        sb.append(", userGender=").append(userGender);
        sb.append(", userSynopsis=").append(userSynopsis);
        sb.append(", userSchool=").append(userSchool);
        sb.append(", userPlace=").append(userPlace);
        sb.append(", userFollowNumber=").append(userFollowNumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}